<?php
$pdo  = new  PDO ( 'mysql:host=localhost;dbname=gaofei' , 'root' , 'root' );
$page=$_GET['page']??1;
$limit=3;
$start=($page-1)*$limit;
$sql="select * from book  limit $start,$limit";
$arr=$pdo->query($sql)->fetchAll(PDO::FETCH_ASSOC);
//print_r($arr);die;
foreach($arr as $value)
{
    ob_start();
    include "mo.php";
    file_put_contents($value['id'].'.html',ob_get_clean());
}

